package com.tms.monitoring.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.monitoring.mapper.ExmanagementMapper;
import com.tms.monitoring.domain.Exmanagement;
import com.tms.monitoring.service.IExmanagementService;

/**
 * 异常管理Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-05
 */
@Service
public class ExmanagementServiceImpl implements IExmanagementService
{
    @Autowired
    private ExmanagementMapper exmanagementMapper;

    /**
     * 查询异常管理
     *
     * @param id 异常管理主键
     * @return 异常管理
     */
    @Override
    public Exmanagement selectExmanagementById(Long id)
    {
        return exmanagementMapper.selectExmanagementById(id);
    }

    /**
     * 查询异常管理列表
     *
     * @param exmanagement 异常管理
     * @return 异常管理
     */
    @Override
    public List<Exmanagement> selectExmanagementList(Exmanagement exmanagement)
    {
        return exmanagementMapper.selectExmanagementList(exmanagement);
    }

    /**
     * 新增异常管理
     *
     * @param exmanagement 异常管理
     * @return 结果
     */
    @Override
    public int insertExmanagement(Exmanagement exmanagement)
    {
        return exmanagementMapper.insertExmanagement(exmanagement);
    }

    /**
     * 修改异常管理
     *
     * @param exmanagement 异常管理
     * @return 结果
     */
    @Override
    public int updateExmanagement(Exmanagement exmanagement)
    {
        return exmanagementMapper.updateExmanagement(exmanagement);
    }

    /**
     * 批量删除异常管理
     *
     * @param ids 需要删除的异常管理主键
     * @return 结果
     */
    @Override
    public int deleteExmanagementByIds(Long[] ids)
    {
        return exmanagementMapper.deleteExmanagementByIds(ids);
    }

    /**
     * 删除异常管理信息
     *
     * @param id 异常管理主键
     * @return 结果
     */
    @Override
    public int deleteExmanagementById(Long id)
    {
        return exmanagementMapper.deleteExmanagementById(id);
    }
}
